package com.xr.blog.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;

/**
 * 链接表
 * 
 * @author XRJ
 * @email 1033835209@qq.com
 * @date 2020-07-07 20:31:38
 */
@Data
@Valid
@TableName("blog_link")
public class BlogLink implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Long id;
	/**
	 * 链接名称
	 */
	@NotBlank(groups = {Insert.class, Update.class},message = "链接名不能为空")
	private String name;
	/**
	 * 链接地址
	 */
	@NotBlank(groups = {Insert.class, Update.class},message = "链接地址不能为空")
	private String url;
	/**
	 * 链接类型 1：友情链接 2：个人链接
	 */
	private Integer type;

}
